package com.briup.day15;

import java.util.Enumeration;
import java.util.Vector;

public class Test_Vector {
    public static void main(String[] args) {
        Vector<String> v = new Vector<>();
        v.add("hello");
        v.addElement("world");
        v.addElement("hello nihao");
        System.out.println(v);
        Enumeration<String> elements = v.elements();
        while(elements.hasMoreElements()) {
            System.out.println(elements.nextElement());
        }
    }
}
